const routes = [
	{
		path: "/",
		name: "Root",
		component: () => import('@/components/layout/BasicLayout.vue'),
		redirect: { path: "/works" },
		children: [
			{
				path: "/works",
				name: "Works",
				component: () => import('@/views/work/index.vue'),
				meta: {
					title: "项目案例/Projects"
				}
			},
			{
				path: "/works/:slug",
				name: "WorkDetail",
				component: () => import('@/views/workDetail/index.vue'),
				meta: {
					title: "作品详情/Works"
				}
			},
			{
				path: "/team",
				name: "Team",
				component: () => import('@/views/team.vue'),
				meta: {
					title: "小隐团队/Team"
				}
			},
            {
				path: "/about",
				name: "About",
				component: () => import('@/views/about.vue'),
				meta: {
					title: "关于小隐/About"
				}
			},
			{
				path: "/contact",
				name: "Contact",
				component: () => import('@/views/contact.vue'),
				meta: {
					title: "联系方式/Contact"
				}
			}
		]
	},
	{
		"path": "/team",
		"hidden": false,
		component: () => import('@/components/layout/BasicLayout.vue'),
		"children": [
			{
				"name": "Team",
				"path": "team",
				"hidden": false,
				"component": "/team/index",
				"meta": {
					"title": "小隐团队",
					"icon": "1873028501639053314",
					"noCache": false,
					"link": null
				}
			}
		]
	},
    {
		"path": "/about",
		"hidden": false,
		component: () => import('@/components/layout/BasicLayout.vue'),
		"children": [
			{
				"name": "About",
				"path": "about",
				"hidden": false,
				"component": "/about/index",
				"meta": {
					"title": "关于小隐",
					"icon": "1873028550662078466",
					"noCache": false,
					"link": null
				}
			}
		]
    },
	{
		"path": "/contact",
		"hidden": false,
		component: () => import('@/components/layout/BasicLayout.vue'),
		"children": [
			{
				"name": "Contact",
				"path": "contact",
				"hidden": false,
				"component": "/contact/index",
				"meta": {
					"title": "联系方式",
					"icon": "1873028550662078466",
					"noCache": false,
					"link": null
				}
			}
		]
	}
];

const route2 = [
    {
        "name": "/project",
        "path": "//project",
        "hidden": false,
        "redirect": "noRedirect",
        "component": "Layout",
        "alwaysShow": true,
        "meta": {
            "title": "项目案例",
            "icon": "1876894344554721281",
            "noCache": false,
            "link": null
        },
        "children": [
            {
                "name": "/works",
                "path": "/works",
                "hidden": false,
                "component": "work/index",
                "query": "{\"cat_id\":\"areaFlag\"}",
                "meta": {
                    "title": "户型",
                    "icon": null,
                    "noCache": false,
                    "link": null
                }
            },
            {
                "name": "/works",
                "path": "/works",
                "hidden": false,
                "component": "work/index",
                "query": "{\"cat_id\":\"familyFlag\"}",
                "meta": {
                    "title": "常住人口",
                    "icon": null,
                    "noCache": false,
                    "link": null
                }
            },
            {
                "name": "/work",
                "path": "/work",
                "hidden": false,
                "component": "work/index",
                "query": "{“cat_id”:\"styleFlag\"}",
                "meta": {
                    "title": "风格",
                    "icon": null,
                    "noCache": false,
                    "link": null
                }
            },
            {
                "name": "/work",
                "path": "/work",
                "hidden": false,
                "component": "work/index",
                "query": "{“cat_id”:\"typeFlag\"}",
                "meta": {
                    "title": "原始状态",
                    "icon": null,
                    "noCache": false,
                    "link": null
                }
            },
            // {
            //     "name": "/work",
            //     "path": "/work",
            //     "hidden": false,
            //     "component": "work/index",
            //     "query": "{“cat_id”:\"cityFlag\"}",
            //     "meta": {
            //         "title": "城市",
            //         "icon": null,
            //         "noCache": false,
            //         "link": null
            //     }
            // },
            {
                "name": "/work",
                "path": "/work",
                "hidden": false,
                "component": "work/index",
                "query": "{“cat_id”:\"yearFlag\"}",
                "meta": {
                    "title": "年度",
                    "icon": null,
                    "noCache": false,
                    "link": null
                }
            }
        ]
    },
    {
        "path": "/",
        "hidden": false,
        "component": "Layout",
        "children": [
            {
                "name": "/team",
                "path": "/team",
                "hidden": false,
                "component": "team/index",
                "meta": {
                    "title": "小隐团队",
                    "icon": "1873028501639053314",
                    "noCache": false,
                    "link": null
                }
            }
        ]
    },
    {
        "path": "/",
        "hidden": false,
        "component": "Layout",
        "children": [
            {
                "name": "/contact",
                "path": "/contact",
                "hidden": false,
                "component": "contact/index",
                "meta": {
                    "title": "联系方式",
                    "icon": "1873028550662078466",
                    "noCache": false,
                    "link": null
                }
            }
        ]
    }
]

export default routes;
